using Newtonsoft.Json;
/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "订单详情",TableName = "View_OrderInfo")]
    public class View_OrderInfo:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="Order_Id")]
       [JsonIgnore]
       [Column(TypeName="uniqueidentifier")]
       [Required(AllowEmptyStrings=false)]
       public Guid Order_Id { get; set; }

       /// <summary>
       ///订单编号
       /// </summary>
       [Display(Name ="订单编号")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Required(AllowEmptyStrings=false)]
       public string OrderNo { get; set; }

       /// <summary>
       ///订单类型
       /// </summary>
       [Display(Name ="订单类型")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int OrderType { get; set; }

       /// <summary>
       ///订单数量
       /// </summary>
       [Display(Name ="订单数量")]
       [Column(TypeName="int")]
       public int? TotalQty { get; set; }

       /// <summary>
       ///订单金额
       /// </summary>
       [Display(Name ="订单金额")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       public decimal? TotalPrice { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="GoodsId")]
       [Column(TypeName="uniqueidentifier")]
       public Guid? GoodsId { get; set; }

       /// <summary>
       ///商品编号
       /// </summary>
       [Display(Name ="商品编号")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       public string GoodsCode { get; set; }

       /// <summary>
       ///商品名称
       /// </summary>
       [Display(Name ="商品名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       public string GoodsName { get; set; }

       /// <summary>
       ///商品规格
       /// </summary>
       [Display(Name ="商品规格")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       public string Specs { get; set; }

       /// <summary>
       ///单价
       /// </summary>
       [Display(Name ="单价")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       public decimal? Price { get; set; }

       /// <summary>
       ///数量
       /// </summary>
       [Display(Name ="数量")]
       [Column(TypeName="int")]
       public int? Qty { get; set; }

       /// <summary>
       ///商品图片
       /// </summary>
       [Display(Name ="商品图片")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       public string Img { get; set; }

       /// <summary>
       ///订单日期
       /// </summary>
       [Display(Name ="订单日期")]
       [Column(TypeName="datetime")]
       [Required(AllowEmptyStrings=false)]
       public DateTime OrderDate { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Creator { get; set; }

       
    }
}
